package com.topteam.demo.domain

import javax.persistence._
import scala.beans.BeanProperty
import java.util.Date

/**
 * Created by thinkpad on 14-1-24.
 */
@Entity
@Table(name = "todo")
class Todo extends Serializable {
  @Id
  @BeanProperty var id: String = _

  @BeanProperty var title: String = _

  @Temporal(TemporalType.TIMESTAMP)
  @BeanProperty var begin: Date = _

  @Temporal(TemporalType.TIMESTAMP)
  @BeanProperty var end: Date = _

  @BeanProperty var done: Boolean = _
}
